﻿#include <QApplication>
#include "ChineseHistoryTools.h"
#include <QDebug>

#define DATA_PATH "./Resourse/HistoryData.json"
#pragma execution_character_set("utf-8")

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    ChineseHistoryTools::GetInstance()->getChinexeHistoryData(DATA_PATH);
//    QList<EmperorReginTime> lst = ChineseHistoryTools::GetInstance()->getEmperorReginTime(QString("明"));
//    for(int i = 0; i < lst.size(); ++i)
//    {
//        qDebug() << "皇帝名称: " << lst.at(i).name;
//        qDebug() << "在位时间: " << lst.at(i).time;
//    }
    ChineseHistoryTools::GetInstance()->initMainUI();
    return a.exec();
}
